﻿<!DOCTYPE html>
<html class="loginHtml">
<head>
    <meta charset="utf-8">
    <title>用户注册--婚庆系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="/static/imgs/favicon.ico">
    <link href="/static/plugins/layui/css/layui.css" rel="stylesheet"/>
    <link href="/static/css/public.css" rel="stylesheet"/>
</head>
<body class="loginBody">
<form class="layui-form" style="height:490px;width:400px;" id="regForm">
    {% csrf_token %}
    <div style="text-align: center;height: 70px;line-height: 70px;    font-size: 26px;    padding-bottom: 14px;    color: #777;">
        商户注册
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商户类型</label>
        <div class="layui-input-block ">
            <select name="businessType" lay-verify="required">
{#                <option value=""></option>#}
                {% for type in types %}
                    <option value="{{ type.id }}">{{ type.category }}</option>
                {% endfor %}
            </select>
        </div>
    </div>
    <div class="layui-form-item input-item">
        <label for="userName">用户名</label>
        <input type="text" placeholder="请输入用户名" autocomplete="off" id="userName" aria-autocomplete="none"
               name="username" class="layui-input" lay-verify="required" maxlength="20"/>
    </div>
    <div class="layui-form-item input-item">
        <label for="userEmail">邮箱</label>
        <input type="text" placeholder="请输入邮箱" autocomplete="off" id="userEmail" aria-autocomplete="none"
               name="email" class="layui-input" lay-verify="required" maxlength="20"/>
    </div>
    <div class="layui-form-item input-item">
        <label for="password">密码</label>
        <input type="password" placeholder="请输入密码" autocomplete="new-password" id="password" aria-autocomplete="none"
               name="password" class="layui-input" lay-verify="required" maxlength="20"/>
    </div>
    <div class="layui-form-item input-item">
        <label for="ConfirmPassword">确认密码</label>
        <input type="password" placeholder="请输入密码" autocomplete="off" id="ConfirmPassword" aria-autocomplete="none"
               name="ConfirmPassword" class="layui-input" lay-verify="required" maxlength="20"/>
    </div>

    <div class="layui-form-item input-item" id="imgCode">
        <label for="code">验证码</label>
        <input type="text" placeholder="请输入验证码" autocomplete="off" id="code" aria-autocomplete="none" name="captcha"
               class="layui-input" lay-verify="required" maxlength="4"/>
        <img src="{% url 'userprofile:check_code' %}" id="imgCheckCode" style="height:36px;"/>
    </div>
    <div class="layui-form-item">
        <button class="layui-btn layui-btn-normal layui-block" lay-filter="register" id="btnReg" lay-submit>注册</button>
    </div>
    <div class="layui-form-item layui-row">
        已有账号？去<a href="{% url 'userprofile:business_login' %}" style="color:blue;text-decoration:underline;">登录</a>
    </div>
</form>
<script src="/static/plugins/layui/layui.js"></script>
<script src="/static/js/Login/LoginBase.js"></script>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/static/js/common.js"></script>
<script src="/static/js/Login/BusinessReg.js"></script>
</body>
</html>